<template>
  <div id="app">
    <router-view v-if="isRouterAlive" />
  </div>
</template>

<script lang="ts" name="App" setup>
// 刷新当前页面
const isRouterAlive = ref(true)
const reload = () => {
  isRouterAlive.value = false
  nextTick(() => {
    isRouterAlive.value = true
  })
}
provide('reload', reload)
</script>
<style lang="scss" scoped>
#nprogress .bar {
  background: $biankuang !important; //自定义颜色
}
#app {
  box-sizing: border-box;
}
</style>
